﻿using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Power.View.Dialog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Power.ViewModel.Dialog
{
    public class ImagesDetailViewModel : ViewModelBase
    {
        private ImagesDetail model;

        public string ImageUrl { get;private set;  }
        public ImagesDetailViewModel(string imageUrl,ImagesDetail model)
        {
            this.model = model;
            Close = new RelayCommand(OnClose);
            this.ImageUrl = imageUrl;
        }
        private void OnClose()
        {
            this.model.DialogResult = false;
            this.model.Close();
        }

        #region 
        public RelayCommand Close { get; private set; }
        #endregion
    }
}
